/*  1:   */ package org.intellij.lang.regexp;
/*  2:   */ 
/*  3:   */

import com.intellij.lang.BracePair;
import com.intellij.lang.PairedBraceMatcher;
import com.intellij.psi.PsiFile;
import com.intellij.psi.tree.IElementType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */ 
/* 10:   */ public class RegExpBraceMatcher
/* 11:   */   implements PairedBraceMatcher
/* 12:   */ {
/* 13:   */   public BracePair[] getPairs()
/* 14:   */   {
/* 15:27 */     return new BracePair[] { new BracePair(RegExpTT.GROUP_BEGIN, RegExpTT.GROUP_END, true), new BracePair(RegExpTT.SET_OPTIONS, RegExpTT.GROUP_END, true), new BracePair(RegExpTT.NON_CAPT_GROUP, RegExpTT.GROUP_END, true), new BracePair(RegExpTT.POS_LOOKAHEAD, RegExpTT.GROUP_END, true), new BracePair(RegExpTT.NEG_LOOKAHEAD, RegExpTT.GROUP_END, true), new BracePair(RegExpTT.POS_LOOKBEHIND, RegExpTT.GROUP_END, true), new BracePair(RegExpTT.NEG_LOOKBEHIND, RegExpTT.GROUP_END, true), new BracePair(RegExpTT.PYTHON_NAMED_GROUP, RegExpTT.GROUP_END, true), new BracePair(RegExpTT.PYTHON_NAMED_GROUP_REF, RegExpTT.GROUP_END, true), new BracePair(RegExpTT.CLASS_BEGIN, RegExpTT.CLASS_END, false), new BracePair(RegExpTT.LBRACE, RegExpTT.RBRACE, false), new BracePair(RegExpTT.QUOTE_BEGIN, RegExpTT.QUOTE_END, false) };
/* 16:   */   }
/* 17:   */   
/* 18:   */   public boolean isPairedBracesAllowedBeforeType(@NotNull IElementType paramIElementType1, @Nullable IElementType paramIElementType2)
/* 19:   */   {
/* 20:38 */     if (paramIElementType1 == null) {
/* 21:38 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/intellij/lang/regexp/RegExpBraceMatcher", "isPairedBracesAllowedBeforeType" }));
/* 22:   */     }
/* 23:38 */     return false;
/* 24:   */   }
/* 25:   */   
/* 26:   */   public int getCodeConstructStart(PsiFile paramPsiFile, int paramInt)
/* 27:   */   {
/* 28:42 */     return paramInt;
/* 29:   */   }
/* 30:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.lang.regexp.RegExpBraceMatcher

 * JD-Core Version:    0.7.0.1

 */